package com.zhida.smartcontrol.launch.login.bean;

import com.zhida.smartcontrol.common.Api;

public class UserInfoBean {
    /**
     * id : e9ca23d68d884d4ebb19d07889727dae
     * username : admin
     * realname : 管理员
     * password : cb362cfeefbf3d8d
     * salt : RCGTeGiH
     * avatar : user/20190119/logo-2_1547868176839.png
     * birthday : 2018-12-05
     * sex : 1
     * email : 11@qq.com
     * phone : 18566666661
     * orgCode : A01
     * status : 1
     * delFlag : 0
     * createBy : null
     * createTime : 2038-06-22 01:54:10
     * updateBy : admin
     * updateTime : 2019-07-05 22:47:22
     * activitiSync : 1
     */

    private String id;
    private String username;
    private String realname;
    private String password;
    private String salt;
    private String avatar;
    private String birthday;
    private int sex;
    private String email;
    private String phone;
    private String orgCode;
    private int status;
    private String delFlag;
    private Object createBy;
    private String createTime;
    private String updateBy;
    private String updateTime;
    private String activitiSync;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getAvatar() {
        if (!avatar.startsWith("http")) {
            return Api.BASE_URL + avatar;
        }
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Object getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Object createBy) {
        this.createBy = createBy;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getActivitiSync() {
        return activitiSync;
    }

    public void setActivitiSync(String activitiSync) {
        this.activitiSync = activitiSync;
    }
}
